home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Toolbox / MovableModal / Read Me • MModal 7.0 < prev   
Encoding:
Text File  |  1993-01-18  |  1.2 KB  |  30 lines  |  [TEXT/MPS ]

  1. MModal 7.0
  2. A small sample showing one way of implementing Movable Modal 
  3. dialogs in a 7.0 or later application.
  4.  
  5. Movable Modals are a new feature in the interface, and our current 
  6. System Software does not provide the same kind of 
  7. 'automatic' support for them that a regular Alert or Modal Dialog 
  8. has, so you have to invest some code to make the things work.
  9.  
  10. It's not at all difficult once you understand the issues, 
  11. it basically comes down to adding one more global to your application,
  12. and checking that global whenever you might shuffle windows.
  13.  
  14. Here's a small sample app that has two non-modal windows.  Select 
  15. 'Open MModal Dialog' from the Test Stuff menu, and a MModal dialog
  16. will come up.
  17. Following the interface guidelines, you can,
  18. • Move the MModal dialog around
  19. • Switch out to other applications, either with the Application menu
  20.   or a click in another app's window or the Desktop
  21. • You CANNOT select any of the other two windows in the application
  22.  
  23. Try it, look at the code, you'll see how straightforward it can be.
  24.  
  25. And again, this is one way of doing it, not the only way.  Do what you need
  26. to in your application, keeping the Interface Guidelines as your goal.
  27.  
  28. C.K. Haun
  29. Apple DTS
  30. 3/5/92